package com.hugong.cx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hugong.cx.entity.SysMenu;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author cx
 * @since 2024-09-05
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    @Select("SELECT p.*  \n" +
            "FROM sys_menu i JOIN sys_menu p\n" +
            "WHERE i.id =p.pid\n" +
            "ORDER BY i.`id`")
    List<SysMenu> getByMenuAll();

}
